package com.redstar.interesting.main.hello.controller;


import lombok.extern.slf4j.Slf4j;
import org.springframework.web.HttpRequestHandler;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author lihongxing
 */
@Slf4j
public class Hello3Controller implements HttpRequestHandler {




    @Override
    public void handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        log.info("controller实现的第三种方式:实现 HttpRequestHandler 接口");
        String method = request.getMethod();


    }
}
